import App from './App'
import store from '@/store/index.js'
import {pathUrl} from '@/common/config.js'
import uView from '@/uni_modules/uview-ui'
import TabBar from '@/components/tabbar/tabbar.vue'
import NoData from '@/components/no-data/no-data.vue'
import LLoading from '@/components/l-loading/l-loading'
import globalMixins from '@/common/globalMixins.js'


// 引入第三方UI框架
Vue.use(uView)
uni.$u.setConfig({
	config: {
		unit: 'rpx'
	}
})
Vue.prototype.$pathUrl = pathUrl
Vue.prototype.$store = store
Vue.component('tab-bar',TabBar)
Vue.component('no-data',NoData)
Vue.component('l-loading',LLoading)
Vue.mixin(globalMixins)
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif